This sample demonstrates how to use Flyout and MenuFlyout controls to present the user with information, questions, or a menu of options.
Specifically, this sample covers:
- Basic usage of Flyout and MenuFlyout controls using the Button.Flyout property.
- Sharing a Flyout among multiple buttons.
- Showing a Flyout from a non-button FrameworkElement using the FlyoutBase.AttachedFlyout attached property.
- Loading content into a Flyout dynamically by handling the FlyoutBase.Opening event.
This sample is written in XAML. For the HTML version, see the HTML flyout control sample.
To obtain an evaluation copy of Windows 8.1, go to Windows 8.1.
To obtain an evaluation copy of Microsoft Visual Studio 2013, go to Visual Studio 2013.
Related topics
- Roadmaps
- Roadmap for C# and Visual Basic
- Samples
- HTML flyout control sample
- Windows app samples
- Reference
- Flyout
- MenuFlyout
- Button.Flyout
- FlyoutBase.AttachedFlyout
- FlyoutBase.Opening
Operating system requirements
| Client | |
|---|---|
| Server |
Build the sample
- Start Visual Studio 2013 and select File > Open > Project/Solution.
- Go to the directory in which you unzipped the sample. Go to the directory named for the sample, and double-click the Visual Studio 2013 Solution (.sln) file.
- Press F7 or use Build > Build Solution to build the sample.
Run the sample
To debug the app and then run it, press F5 or use Debug > Start Debugging. To run the app without debugging, press Ctrl+F5 or use Debug > Start Without Debugging.